#include "manager_add_clerk_dialog.h"
#include "ui_manager_add_clerk_dialog.h"
#include "account.h"
#include "QMessageBox"

manager_add_clerk_dialog::manager_add_clerk_dialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::manager_add_clerk_dialog)
{
    ui->setupUi(this);
    this->setWindowTitle("新增营业员");
}

manager_add_clerk_dialog::~manager_add_clerk_dialog()
{
    delete ui;
}

void manager_add_clerk_dialog::on_confirm_clicked()
{
    account acc(1,ui->clerk_name->text(),ui->clerk_password->text(),ui->clerk_telnumber->text());
    acc.insertToDB();

}
